//
//  ParametersADSR.h
//  CocoaSynth
//
//  Created by Thomas Dupont on 22/02/10.
//  Copyright 2010 Apple Inc. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "ParametersModule.h"

@class ModuleADSRViewController;

@interface ParametersADSR : NSViewController<ParametersModule> {
	IBOutlet NSSlider* attackSlider;
	IBOutlet NSSlider* decaySlider;
	IBOutlet NSSlider* sustainSlider;
	IBOutlet NSSlider* releaseSlider;
	IBOutlet NSTextField* attackText;
	IBOutlet NSTextField* decayText;
	IBOutlet NSTextField* sustainText;
	IBOutlet NSTextField* releaseText;
	ModuleADSRViewController* module;
}

@property (assign) NSSlider* attackSlider;
@property (assign) NSSlider* decaySlider;
@property (assign) NSSlider* sustainSlider;
@property (assign) NSSlider* releaseSlider;
@property (assign) NSTextField* attackText;
@property (assign) NSTextField* decayText;
@property (assign) NSTextField* sustainText;
@property (assign) NSTextField* releaseText;
@property (assign) ModuleADSRViewController* module;

- (IBAction)attackChange:(id)sender;
- (IBAction)decayChange:(id)sender;
- (IBAction)sustainChange:(id)sender;
- (IBAction)releaseChange:(id)sender;
- (void)load;

@end
